{{- define "content" -}}
  {{ $name := .Data.Plural -}}
  {{ $terms := .Data.Terms.ByCount -}}
  {{ $length := len $terms -}}
  {{ if eq $name "categories" -}}
    <div class="art-list-summary">
      {{ if eq $length 0 }}
        {{ T "zeroCategoryCounter" }}
      {{- else -}}
        {{ T "categoryCounter" $length }}
      {{- end }}
    </div>
    <div class="lgl-terms-box">
      <div class="terms-item-list">
        {{ range $key, $value := $terms }}
          <a class="terms-item" href="{{ $name | relLangURL }}/{{ $value.Term | urlize }}{{ if $.Site.Params.uglyURLs }}.html{{else}}/{{ end }}">
            {{ $value.Term }}
						<sup>{{ len $value.Pages }}</sup>
          </a>
        {{ end }}
      </div>
    </div>
  {{- else if eq $name "tags" -}}
    <div class="art-list-summary">
      {{ if eq $length 0 -}}
        {{ T "zeroTagCounter" }}
      {{- else -}}
        {{ T "tagCounter" $length }}
      {{- end }}
    </div>
    <div class="lgl-terms-box">
      <div class="terms-item-list">
        {{- range $key, $value := $terms }}
          <a class="terms-item" href="{{ $name | relLangURL }}/{{ $value.Term | urlize }}{{ if $.Site.Params.uglyURLs }}.html{{else}}/{{ end }}">
            {{ $value.Term }}
            <sup>{{ len $value.Pages }}</sup>
          </a>
        {{ end -}}
      </div>
    </div>
  {{- end }}
{{- end }}
